<template>
  <div class="webview-container">
    <web-view :src="url" />
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'

const url = ref('')

onLoad((options) => {
  url.value = options.url || ''
})
</script>

<style scoped>
.webview-container {
  height: 100vh;
}
</style>
